package com.chennan.factory.opt;

/**
 * 计算类
 */
public abstract class Operation {
	/**
	 * 计算的第一个数
	 */
	private Number numberFirst;
	/**
	 * 计算的第2个数
	 */
	private Number numberSecond;
	
	public Number getNumberFirst() {
		return numberFirst;
	}
	public void setNumberFirst(Number numberFirst) {
		this.numberFirst = numberFirst;
	}
	public Number getNumberSecond() {
		return numberSecond;
	}
	public void setNumberSecond(Number numberSecond) {
		this.numberSecond = numberSecond;
	}
	
	public abstract Number calculate();
}
